package com.ufox.controller;


import com.ufox.entity.Pay;
import com.ufox.entity.Result;
import com.ufox.service.IPayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 优狐科技-www.hbufox.com
 * @since 2022-05-31
 */
@RestController
@RequestMapping("/pay")
public class PayController {

    @Autowired
    private IPayService payService;

    @GetMapping
    public Result findAllCategory() {
        List<Pay> list = payService.list();
        return Result.ok(list);
    }

}

